package learn;

import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

/**
 * 按字符写
 */

public class WriteTest {
    public static void main(String[] args) {
        try (Writer writer = new FileWriter("./test.txt", true)) {
            writer.write("xyz");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
